<?php
// 多个账号密码
$arr = array(
    array(
        'phone' => '账号1',
        'pass' => '密码1',
        'count' => rand(15000,30000),
    ),
    array(
        'phone' => '账号2',
        'pass' => '密码2',
        'count' => rand(15000,30000),
    ),
    array(
        'phone' => '账号3',
        'pass' => '密码3',
        'count' => rand(15000,30000),
    ),
);

foreach ($arr as $key => $value) {
    $bushu= file_get_contents("https://api.kit9.cn/api/xiaomi_sports/api.php?mobile=".$value['phone']."&password=".$value['pass']."&step=".$value['count']);
}


function handler($event, $context) {
    $output = array(
        "statusCode" => 200,
        "headers" => array(
            "Content-Type" => "application/json",
        ),
        "isBase64Encoded" => false,
        "body" => json_encode($event),
    );
    return $output;
}
?>